package java19_4_27.com.huweilong.thread_pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Demo2 {
    public static void main(String[] args) {
        // 不太建议在实际生产项目下使用
        ExecutorService service = Executors.newFixedThreadPool(10);
        ExecutorService service1 = Executors.newSingleThreadExecutor();
        ExecutorService service2 = Executors.newCachedThreadPool();

        Runnable task = new Runnable() {
            @Override
            public void run() {

            }
        };
        service.execute(task);
    }
}
